package javacore.classinface.inface;

interface Father {
	void playFootball();
}

interface Mother {
	void dance();
}

class Child implements Father, Mother {

	public Child() {
	}
	
	@Override
	public void dance() {
		System.out.println("I can play football like my father");		
	}

	@Override
	public void playFootball() {
		System.out.println("I can play dance like my mother");		
	}
	
}


public class SecondInterfaceDemo {
	public static void main(String[] args) {
		Child child = new Child();
		child.playFootball();
		child.dance();
	}
}
